# eric7.Snapshot.SnapshotPreview

Module implementing the snapshot preview label.

### Global Attributes

None

### Classes

SnapshotPreview | Class implementing the snapshot preview label.

### Functions

None

## SnapshotPreview

Class implementing the snapshot preview label.

### Signals

startDrag()
  emitted to indicate the start of a drag operation

### Derived from

QLabel

### Class Attributes

None

### Class Methods

None

### Methods

SnapshotPreview | Constructor
mouseMoveEvent | Protected method to handle mouse moves.
mousePressEvent | Protected method to handle mouse button presses.
mouseReleaseEvent | Protected method to handle mouse button releases.
setPreview | Public slot to set the preview picture.

### Static Methods

None

#### SnapshotPreview (Constructor)

SnapshotPreview(parent=None)

Constructor

parent (QWidget)
  reference to the parent widget

#### SnapshotPreview.mouseMoveEvent

mouseMoveEvent(evt)

Protected method to handle mouse moves.

evt (QMouseEvent)
  mouse move event

#### SnapshotPreview.mousePressEvent

mousePressEvent(evt)

Protected method to handle mouse button presses.

evt (QMouseEvent)
  mouse button press event

#### SnapshotPreview.mouseReleaseEvent

mouseReleaseEvent(evt)

Protected method to handle mouse button releases.

evt (QMouseEvent)
  mouse button release event

#### SnapshotPreview.setPreview

setPreview(preview)

Public slot to set the preview picture.

preview (QPixmap)
  preview picture to be shown

Up